package com.yhclient.yhclient3.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.stereotype.Component;

/**
 * @ClassName: SysConfig.java
 * @author: yuhui
 * @version: 1.0.0
 * @Description: 配置文件
 * @createTime: 2021年07月25日 15:17:00
 */
@Component
@RefreshScope
@Data
public class SysConfig {

    @Value("${user.name}")
    private String name;
    @Value("${user.age}")
    private String age;
}
